<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>角色功能浏览</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<link href="${ctx }/css/style.css" type="text/css" rel="stylesheet" />
	</head>
	<body>
		<center>
			<div style="width: 531px;" align="center">
				<div style="width: 99%; height: 30px; text-align: left;">
					当前位置：角色功能浏览
				</div>
				<div style="width: 99%; background-color: #FBF7E6">
					<table id="tbl" width="99%" cellspacing="1" runat="server" style="text-align: center; margin: 0 auto; background-color: #666666" cellpadding="5">
						<tr style="background-color: #EDDEA0">
							<td align="center" style="height: 23" colspan="2">
								<b>角色功能浏览</b>
							</td>
						</tr>
						<tr style="background-color: #FBF7E6">
							<td align="center" style="width: 30%; height: 20px">
								<strong>角色名称</strong>
							</td>
							<td>
								<strong>功能列表</strong>
							</td>
						</tr>
						<s:if test="roleRights.size() == 0">
							<tr align="center">
								<td colspan="2">暂无数据！</td>
							</tr>
						</s:if>
						<s:else>
							<s:iterator value="roleRights" var="r">
								<tr align="center" style="background-color: #ffffff;">
									<td>
										<s:property value="roleName" />
									</td>
									<td>
										<s:if test="%{#r.funList.size() == 0}">
											&nbsp;
										</s:if>
										<s:else>
											<s:iterator value="%{#r.funList}">
												<li>
													<s:property value="displayName" />
												</li>
											</s:iterator>
										</s:else>
									</td>
								</tr>
							</s:iterator>
						</s:else>
					</table>
				</div>
				<div>
					<br />
					<input id="btnBack" type="button" value="返回" class="botton" style="width: 74px; cursor: hand;" onclick="window.close();" />
				</div>
			</div>
		</center>
	</body>
</html>
